/*
 * body_visualizer.h
 * This file is part of gURL
 *
 * Copyright (C) 2014 - Aleksey Konovalov
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Library General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU Library General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef BODY_VISUALIZER_H
#define BODY_VISUALIZER_H

#include <gtk/gtk.h>
#include "session.h"

#define BODY_VISUALIZER_TYPE                (body_visualizer_get_type())
#define BODY_VISUALIZER(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), BODY_VISUALIZER_TYPE, BodyVisualizer))
#define IS_BODY_VISUALIZER(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), BODY_VISUALIZER_TYPE))
#define BODY_VISUALIZER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), BODY_VISUALIZER_TYPE, BodyVisualizerInterface))

typedef struct _BodyVisualizer BodyVisualizer;
typedef struct _BodyVisualizerInterface BodyVisualizerInterface;

struct _BodyVisualizerInterface {
    GTypeInterface parent;

    void (*change_session)(BodyVisualizer* self, Session* session);
    gboolean (*check_is_compatible)(BodyVisualizer* self, Session* session);
    const char* name;
};

GType body_visualizer_get_type();
void body_visualizer_change_session(BodyVisualizer* self, Session* session);
const char* body_visualizer_get_name(const BodyVisualizer* self);
gboolean body_visualizer_check_is_compatible(BodyVisualizer* self,
                                             Session* session);

#endif /* BODY_VISUALIZER_H */
